/**
 * 
 */
package com.zho.common.consumer;

/**
 * @author ho.viet.duan
 * 
 */
public abstract class DefaultOutDataService<T> implements IOutDataService<T> {

    protected INotifier consumerNotifier = null;

    /*
     * (non-Javadoc)
     * 
     * @see com.ipa.fss.gwcommons.consumer.IInDataService#setConsumerNotifier(com.ipa.fss.gwcommons.consumer.INotifier)
     */
    public final void setConsumerNotifier(INotifier consumerNotifier) {
        this.consumerNotifier = consumerNotifier;
    }

    /**
     * send notify to Consumer
     */
    public final void sendNotify() {
        if (consumerNotifier != null) {
            consumerNotifier.sendNotify();
        }
    }
}
